package com.hd.trans.network.apiService

class ApiException(private val code: Int, message: String?) : Exception(message) {

    override val message: String?
        get(){
            return when (code) {
                110 -> "请检查网络连接"
                111 -> "请检查网络连接"
                112 -> "请检查网络连接"
                113 -> "请检查网络连接"
                else -> {
                    return super.message
                }
            }
        }
}